package com.io.entity;

import com.io.common.Comment;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.Type;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Column;
import javax.persistence.Lob;
import java.time.LocalDateTime;

/**
 * The class/interface
 *
 * @author guod
 * @version 1.0 use jdk 1.8
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class BaseMapper {
    /**
     * 属性描述：主键ID
     */
    private Integer sid;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 更新人
     */
    private String updateBy;
    /**
     * 删除标识0-正常；1-删除
     * （true_false=T_F；numeric_boolean=0_1；yes_no=Y_N）
     */
    @Type(type = "numeric_boolean")
    private Boolean delFlag;
    /**
     * 大文本数据
     */
    @Lob
    @Column(columnDefinition = "text")
    private String text;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
}
